package com.longrise.android.byjk.plugins.dealsituation.course.video2.study;

import com.longrise.LEAP.Base.Objects.EntityBean;
import com.longrise.android.byjk.common.UrlConstants;
import com.longrise.android.byjk.model.UserInfor;
import com.longrise.android.byjk.plugins.dealsituation.course.video2.params.StudyRecordBase;
import com.longrise.common.datasource.remote.LoadDataManager;



/**
 * Created by godliness on 2017/5/25.
 */

public class LoadVideoInfor {

    /**
     * get video url
     */
    public static void loadVideoPlayInfor(StudyRecordBase.Record record, LoadDataManager.OnRequestCallListener callListener) {
        if (record == null || callListener == null) {
            return;
        }
        EntityBean bean = new EntityBean();
        bean.set("cardno", UserInfor.getInstance().getUsersfzh());
        bean.set("courseid", record.mCourseid);
        bean.set("studentno", record.mStudentno);
        bean.set("cwid", record.mCwid);
        bean.set("pathno", record.mPathno);
        bean.set("isdownload", "2");  //非下载
        bean.set("comfrom", "Android");
        EntityBean reqBean = new EntityBean();
        reqBean.set("bean", bean);
        LoadDataManager.getInstance()
                .callService(null, UrlConstants.BaseUrl, "bbt_course_getVideoData", reqBean, callListener);
    }

}
